package com.mvetc.dao;

import java.util.List;
import java.util.Map;

import com.mvetc.entity.Movie;
import com.mvetc.entity.PageInfo;

public interface MovieDao {

	/**
	 * @author linshiqing
	 * @param map
	 * @return
	 */
	PageInfo<Movie> findBy(Map<String, String> map);
	
	/**
	 * @author linshiqing
	 * @param movie
	 * @return
	 */
	int insert(Movie movie);
	
	/**
	 * @author linshiqing
	 * @param movieId
	 * @return
	 */
	int deleteById(String movieId);
	
	/**
	 * @author linshiqing
	 * @param movie
	 * @return
	 */
	int updateMovie(Movie movie);
	
	
	/**
	 * 查询数据库获取list集合
	 * @author SunZhiQiang
	 * @date 2020-06-15
	 */
	List<Map<String, Object>> findMoviesInfo(String[] showColumnsName,String[] selectColumnsName,String[] tableNames,String[] joinColumnsName,String...where);
	
	/**
	 * 添加信息
	 * @author SunZhiQiang
	 * @param movie
	 * @return
	 */
	int insertInfo(String tableName,String[] columns,String[] values);
	
	/**
	 * 更新信息
	 * @author SunZhiQiang
	 * @param movie
	 * @return
	 */
	int updateInfo(String tableName, Map<String, String> set, Map<String, String> where);
	
	/**
	 * * 删除信息
	 * @author SunZhiQiang
	 * @param tableName
	 * @param where
	 * @return
	 */
	int deleteInfo(String tableName, Map<String, String> where);
	
	
}
